package com.baox.agridata.synchronous.controller;


import com.baox.agridata.synchronous.entity.TUserQUADECPointEntiy;
import com.baox.agridata.synchronous.result.Result;
import com.baox.agridata.synchronous.service.ReceivePointService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: yxc
 * @date: 2023/12/18 14:27
 * @Description: 接收成都申报点数据
 */

@RestController
@Slf4j
@RequestMapping("/receivePoint")
public class ReceiveChengDuPointController {

    @Autowired
    private ReceivePointService receivePointService;

    @RequestMapping(value = "/ChengduTUserQUADECPoint", method = RequestMethod.POST)
    public Result receiveSiChuanTUserQUADECPoint(@RequestBody List<TUserQUADECPointEntiy> l_list) {
        try {
            receivePointService.receiveSiChuanTUserQUADECPoint(l_list);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return Result.ok();
    }


}
